# include <bits/stdc++.h>
using namespace std;
int main() {
	int i = 1;
	while(1) {
		//system("./seed < rs1 > rs2");
		//system("./seed < rs2 > rs1");
		system("./maker > yl");
		system("./test < yl > r1");
		system("./right < yl > r2");
        printf("No.%d", i++);
        if(system("diff -B -q r1 r2")) {
            printf("-----------------------\nyangli:\n");
            system("cat yl");	
            printf("-----------------------\ntest:\n");
            system("cat r1");
            printf("-----------------------\nright:\n");
            system("cat r2");
            printf("-----------------------\n");
            printf(" no\n");
            getchar();
        } else printf(" yes\n");
	}
}

